package com.woniuxy.venuemodel.form;

import lombok.Data;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.Pattern;
import javax.validation.constraints.Size;

@Data
public class UpdateVenuePassForm {
    @NotBlank(message = "登录密码不能为空")
    @Size(min = 8, max = 20, message = "登录密码长度必须在8到20之间")
    @Pattern(regexp = "^(?=.*[A-Za-z])(?=.*\\d)[A-Za-z\\d]{8,20}$", message = "登录密码必须包含至少一个字母和一个数字")
    private String newPass;//场馆登录新密码
}
